package one.stand.entity;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * 新客户访问
 */
@Data
public class WxUserNoticeEntity implements Serializable {
    /**
     * 用户端openid 用于发送消息
     */
    private String openId;
    /**
     * 名称
     */
    private String nickeName;
    private String crmOpenId;
    private String crmFormId;
    private Integer companyId;
    private String text;

    public String getNickeName() {
        return StringUtils.isEmpty(nickeName)?"":new String(java.util.Base64.getDecoder().decode(nickeName));
    }
}
